﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.ScrollBar, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "ScriptType"))

	_DB:AddCodeHelp("OnValueChanged", [[ScriptType, Run when the ScrollBar's or status bar's value changes]], [[OnValueChanged(value)]])
	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.ScrollBar, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Function"))

	_DB:AddCodeHelp("GetStyle", [=[Gets the scrollbar's style]=], [=[GetStyle()]=])
	_DB:AddCodeHelp("GetMinMaxValues", [=[Returns the minimum and maximum values for the slider]=], [=[GetMinMaxValues()]=])
	_DB:AddCodeHelp("GetValue", [=[Returns the value representing the current position of the slider thumb]=], [=[GetValue()]=])
	_DB:AddCodeHelp("Enable", [=[Allows user interaction with the button]=], [=[Enable()]=])
	_DB:AddCodeHelp("SetMinMaxValues", [=[Sets the minimum and maximum values for the slider]=], [=[SetMinMaxValues(minValue, maxValue)]=])
	_DB:AddCodeHelp("SetValueStep", [=[Sets the minimum increment between allowed slider values]=], [=[SetValueStep(step)]=])
	_DB:AddCodeHelp("Disable", [=[Disallows user interaction with the button]=], [=[Disable()]=])
	_DB:AddCodeHelp("IsEnabled", [=[Returns whether user interaction with the button is allowed]=], [=[IsEnabled()]=])
	_DB:AddCodeHelp("SetStyle", [=[Sets the scrollbar's style]=], [=[SetStyle(style)]=])
	_DB:AddCodeHelp("GetValueStep", [=[Returns the minimum increment between allowed slider values]=], [=[GetValueStep()]=])
	_DB:AddCodeHelp("SetValue", [=[Sets the value representing the position of the slider thumb]=], [=[SetValue(value)]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.ScrollBar, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Property"))

	_DB:AddCodeHelp("Style", [[the popupdialog's style]], IGAS:GetPropertyType("ScrollBarStyle"))
	_DB:AddCodeHelp("Value", [[the value representing the current position of the slider thumb]], IGAS:GetPropertyType("number"))
	_DB:AddCodeHelp("ValueStep", [[the minimum increment between allowed slider values]], IGAS:GetPropertyType("number"))
	_DB:AddCodeHelp("Enabled", [[whether user interaction with the slider is allowed]], IGAS:GetPropertyType("boolean"))
end
